package priv.work;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

import priv.work2.XiaoMing;

@Component
public class Servant {
	@Autowired
	private XiaoMing xiaoming;

	public XiaoMing getXiaoming() {
		return xiaoming;
	}

	public void setXiaoming(XiaoMing xiaoming) {
		this.xiaoming = xiaoming;
	}

	@Override
	public String toString() {
		return "Servant [xiaoming= xiaoming ]";
	}

	public Servant() {
		
	}
}
